/*
 * @Author: DaTree
 * @Date: 2020-11-19 22:15:01
 * @LastEditTime: 2020-11-19 22:22:53
 * @LastEditors: DaTree
 * @Description: DaTreeEdit
 * @FilePath: \services\webpack.config.js
 * @天将降大任于是人也，必先苦其心志，劳其筋骨，饿其体肤，空乏其身，行拂乱其所为。 ——《孟子•告子下》
 * @Copyright 2020 DaTree
 */
const path = require('path')

module.exports = {
    mode: 'development',

    entry: './src/index.js',
    output: {
        filename: 'main.js',
        path: path.resolve(__dirname, 'dist')
    },

    module: {
        rules: [{
            test: /\.ts$/,
            use: "ts-loader"
        }]
    },
    resolve: {
        extensions: [
            '.ts'
        ],
        alias: {
            '@': resolve('src'),
        }
    }
}